﻿<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
Created by IntelliJ IDEA.
首页
User: Admin
Date: 2022/5/30
Time: 15:30
To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%--加入该标签手动开启el功能--%>
<%@page isELIgnored="false" %>
<html lang="zxx">
<head>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

    <%--CSS文件链接--%>
    <%@ include file="commit/headQuote.jsp" %>

    <title>Cognizance - Coronavirus (COVID-19) Awareness & Prevention</title>

    <link rel="icon" type="image/png" href="assets/img/favicon.png">
</head>

<body>

<!-- 预紧器 -->
<div class="preloader">
    <div class="loader">
        <div class="shadow"></div>
        <div class="box"></div>
    </div>
</div>
<!-- 结束 预紧器 -->

<!-- 开始头部区域 -->
<header class="header-area">
    <%--导航区--%>
    <%@ include file="commit/navigationQuote.jsp" %>
</header>
<!-- 结束头部区域 -->

<!-- 开始搜索覆盖 -->
<div class="search-overlay">
    <div class="d-table">
        <div class="d-table-cell">
            <div class="search-overlay-layer"></div>
            <div class="search-overlay-layer"></div>
            <div class="search-overlay-layer"></div>

            <div class="search-overlay-close">
                <span class="search-overlay-close-line"></span>
                <span class="search-overlay-close-line"></span>
            </div>

            <div class="search-overlay-form">
                <form>
                    <input type="text" class="input-search" placeholder="Search here...">
                    <button type="submit"><i class='bx bx-search-alt'></i></button>
                </form>
            </div>
        </div>
    </div>
</div>
<!-- 结束搜索覆盖 -->

<!-- 结束起始页标题区 -->
<section class="page-title-area">
    <div class="container">
        <div class="page-title-content">
            <h2>购买物资</h2>
            <ul>
                <li><a href="index.jsp">主页</a></li>
                <li>购买物资</li>
            </ul>
        </div>
    </div>
</section>
<!-- 结束起始页标题区 -->

<!-- 开始物资选择区域-->
<section class="products-area ptb-100">
    <div class="container">
        <div class="row">
            <c:forEach items="${goods}" var="goods">
            <div class="col-lg-3 col-md-6 col-sm-6">
                <div class="single-products-box">
                    <div class="products-image">
                        <a href="#">
                            <img src="${goods.goods_img}" height="50px" width="50px" alt="商品">
                        </a>
                    </div>

                    <div class="products-content">
                        <h3><a href="#">${goods.goods_name}</a></h3>
                        <div class="price">
                            <span class="new">${goods.goods_price}</span>
                        </div>
                        <a href="./GoodsServletById?id=${goods.id}" class="add-to-cart-btn"><i
                                class="flaticon-shopping-cart"></i> 进入详情界面</a>
                    </div>
                </div>
            </div>
            </c:forEach>
</section>
<!-- 结束物资选择区域 -->

<%--引用页脚区域--%>
<%@ include file="commit/footer.jsp" %>
<%--js文件引用--%>
<%@include file="commit/JsQuote.jsp" %>
</body>
</html>